import request from '/@/utils/request';


export function getCollectionList(query:Object) {
    return request({
        url: '/api/v1/system/collection/list',
        method: 'get'
    })
}

export function editCollectionList(data:any) {
    return request({
        url: '/api/v1/system/collection/edit',
        method: 'post',
        data:data,
    })
}

export function downloadCollection(id:number){
    return request({
        url: '/api/v1/system/collection/download?id='+id,
        method: 'get',
        responseType: 'blob',
    })
}
